package cn.com.homeyoda.aimate.aihealth.ui.videoinspect;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.annotation.RequiresApi;
import androidx.databinding.library.baseAdapters.BR;
import androidx.lifecycle.ViewModelProviders;

import com.afollestad.materialdialogs.MaterialDialog;
import cn.com.homeyoda.aimate.aihealth.R;
import cn.com.homeyoda.aimate.aihealth.app.AppViewModelFactory;
import cn.com.homeyoda.aimate.aihealth.base.BaseActivity;
import cn.com.homeyoda.aimate.aihealth.databinding.ActivityImproveInfoTwoBinding;
import cn.com.homeyoda.aimate.aihealth.databinding.ActivityTijianResultBinding;
import cn.com.homeyoda.aimate.aihealth.databinding.ActivityTijianResultTwoBinding;
import com.makeramen.roundedimageview.RoundedImageView;

import static com.wzq.mvvmsmart.utils.Utils.getContext;

//初次在此家庭检测
public class TiJianResulTwotActivity extends BaseActivity<ActivityTijianResultTwoBinding, VideoInspectModel>{


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Override
    public VideoInspectModel initViewModel() {
        AppViewModelFactory factory = AppViewModelFactory.getInstance(getApplication());
        return ViewModelProviders.of(this, factory).get(VideoInspectModel.class);
    }

    @Override
    public void initData() {
        super.initData();

        initView();

    }

    private void initView() {


        binding.hulue.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getContext(), DetectionResultActivity.class));
                finish();

            }
        });
        binding.jiaru.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getContext(), DetectionResultActivity.class));
                finish();
            }
        });






    }



    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    protected void onDestroy() {
        super.onDestroy();

    }



    @Override
    public void initViewObservable() {
        super.initViewObservable();

    }

    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_tijian_result_two;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }
}
